package com.springboot.practice.repository;

import com.springboot.practice.domain.User;

import java.util.List;

public interface UserRepository {
    /**
     * 创建或者修改用户
     *
     */
    User saveOrUpdateUaser(User user);

    void deleteUser(Long id);

    User getUserById(Long id);

    List<User> listUser();


}
